﻿/*****************************************************************//**
 * @file    FITKOCCViewAdaptorSketch.h
 * @brief   Adaptor for occ sketch 2d data.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-09-04
 *********************************************************************/

#ifndef __FITKOCCVIEWADAPTORSKETCH_H__
#define __FITKOCCVIEWADAPTORSKETCH_H__

#include "FITKOCCViewAdaptorBase.h"

#include "FITKOCCGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for occ sketch 2d data.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-09-04
     */
    class FITKOCCGRAPHADAPTORAPI FITKOCCViewAdaptorSketch : public FITKOCCViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKOCCViewAdaptorSketch);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-09-04
         */
        explicit FITKOCCViewAdaptorSketch() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-09-04
         */
        ~FITKOCCViewAdaptorSketch() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-09-04
         */
        bool update() override;

    };

    // Regist sketch 2d adaptor
    Register2FITKViewAdaptorFactory(GeoSketchOCC, Interface::FITKAbsGeoSketch2D, FITKOCCViewAdaptorSketch);
}   // namespace Exchange

#endif // __FITKOCCVIEWADAPTORSKETCH_H__